package com.yuancheng.modules.msweb.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yuancheng.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 操作员
 * @author： yuancheng
 * @date：   2020-01-08
 * @version： V1.0
 */
@Data
@TableName("operator")
public class Operator implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**操作员id*/
	@TableId(type = IdType.AUTO)
	private java.lang.Integer id;
	/**手机号（即登录账号）*/
	@Excel(name = "手机号（即登录账号）", width = 15)
	private java.lang.String phone;
	/**密码（默认手机号后6位）*/
	@Excel(name = "密码（默认手机号后6位）", width = 15)
	private java.lang.String psw;
	/**类型：1区域主管2操作员*/
	@Excel(name = "类型：1区域主管2操作员", width = 15,dicCode = "operator_type")
	@Dict(dicCode = "operator_type")
	private java.lang.String type;
	/**添加时间*/
	@Excel(name = "添加时间", width = 15)
	private java.lang.String addTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
	private java.lang.String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
	private java.lang.String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date updateTime;

	/**关联设备*/
	@TableField(exist = false)
	private String devnums;

	/**区域主管id*/
	@Excel(name = "区域主管id", width = 15)
	private java.lang.String sysUserId;
}
